﻿@model B4Deal.Models.Deal
<link href="@Url.Content("~/Content/Layout/Product.css")" type="text/css" />
@{
    var per = (Model.DonGiaCu - Model.DonGiaMoi) * 100 / Model.DonGiaCu;
    var str = "../../Content/Layout/Images/deals/" + Model.HinhAnh;
}
<div class="right-menu-deal">
    <a title="Apple Spa" href="@Url.Action("DetailDeal","Home",new {id= @Model.MaKM})">
        <img width="221" height="149" title="@Model.TenKM" alt="@Model.TenKM" src="@str"/>
    </a><i></i>
    <h4>
        <a title="Apple Spa" href="@Url.Action("DetailDeal","Home",new {id= @Model.MaKM})">@Model.TenKM</a>
    </h4>
    <div class="right-menu-deal-price">
        <span class="price"><span>VNĐ</span> <span class="num-price">@{var money = String.Format("{0:0,0}",Model.DonGiaMoi);}@money</span>
        </span><span class="save"><span>tiết kiệm</span> <span class="percent">@per %</span>
        </span>
    </div>
</div>
